Class SerializableStrategy

Summary

Fully Qualified Name: Laminas\Hydrator\Strategy\SerializableStrategy
Implements: StrategyInterface

Description

Methods

Name Description Defined By
__construct() SerializableStrategy
extract() Serialize the given value so that it can be extracted by the hydrator. SerializableStrategy
getSerializer() Get serializer SerializableStrategy
getSerializerOptions() Get configuration options for instantiating a serializer adapter SerializableStrategy
hydrate() Unserialize the given value so that it can be hydrated by the hydrator. SerializableStrategy
setSerializer() Set serializer SerializableStrategy
setSerializerOptions() Set configuration options for instantiating a serializer adapter SerializableStrategy

Method Details

__construct()

Parameter Name Type Description
$serializer string|\SerializerAdapter
$serializerOptions null|array

Returns:

extract()

Serialize the given value so that it can be extracted by the hydrator.

{@inheritDoc}

Parameter Name Type Description
$value
$object

Returns:

getSerializer()

Get serializer

Returns:

getSerializerOptions()

Get configuration options for instantiating a serializer adapter

Returns: array

hydrate()

Unserialize the given value so that it can be hydrated by the hydrator.

{@inheritDoc}

Parameter Name Type Description
$value
$data

Returns:

setSerializer()

Set serializer

Parameter Name Type Description
$serializer mixed Should

Returns:

setSerializerOptions()

Set configuration options for instantiating a serializer adapter

Parameter Name Type Description
$serializerOptions array

Returns:

Top